<template>
 <div>
   <van-nav-bar
   class="coll"
  title="收藏列表"
  left-arrow
 @click-left="$router.back()"
/>
<houseList v-for="(item,index) in collect" :key="index" :item="item"></houseList>
 </div>

</template>

<script>
import houseList from '../components/houseList.vue'
import { gtecollect } from '../api/article'
export default {
  components: {
    houseList

  },
  data () {
    return {
      collect: []
    }
  },
  async created () {
    const res = await gtecollect()
    // console.log(res)
    this.collect = res.body
  },
  methods: {

  }
}
</script>

<style lang="less" scoped>
// .coll{
//   position:fixed;
//   width: 100%;

// }

</style>
